package CommandPattern;

/**
 * @version: java version 1.8
 * @Author: Zheng
 * @description:
 * @date: 2022-08-16 21:50
 */
public class Stock {
    private String name="ABC";
    private int quantity=10;

    public void buy(){
        System.out.println("Stock[Name:"+name+"Quantity:"+quantity+"]bought");
    }

    public void sell(){
        System.out.println("Stock[Name:"+name+"Quantity:"+quantity+"]sold");
    }

}
